<template>
	<view class="container">
		<view class="carousel">
			<view class="goBack" @tap="getBack"><text class="yticon icon-zuo"></text></view>
			<swiper indicator-dots circular=true duration="400">
				<block v-for="(item, index) of swiperImage" :key="index">
					<swiper-item class="swiper-item">
						<view class="image-wrapper">
							<easy-loadimage mode="widthFix" :scroll-top="scrollTop" :image-src="item.file_path"></easy-loadimage>
						</view>
					</swiper-item>
				</block>
			</swiper>
		</view>

		<view class="introduce-section">
			<view class="pd-30">
				<view class="price-box">
					<text class="price-tip">CD ¥ {{ skuInfo.goods_price }}</text>
					<text class="price">{{info.goods_price}}</text>
				</view>
				<view class="bot-row">
					<text>库存: {{skuInfo.stock_num}}</text>
					<text v-if="storeInfo.express_price">运费: {{storeInfo.express_price}}</text>
					<text v-else>运费: 免运费</text>
					<text>销量: {{skuInfo.goods_sales}}</text>
				</view>
			</view>
			
			<view class="specifications">
				<view class="h6">规格 / 数量</view>
				<view class="span">已选： <text v-if="sku_arr.length > 0">{{ sku_arr.join('、') }} /</text> <text> x {{ goodsNum }}</text></view>
			</view>
		</view>
		
		<view class="cut"></view>
		
		<view class="store">
			<img :src="shopLogo.file_path" alt="">
			<view class="store_name">
				<text class="name">{{ shopInfo.shop_name }}</text>
				<text class="address">{{ shopInfo.address }}</text>
			</view>
			<view class="store_go" @tap="shopDetails(shop_id)">进入</view>
		</view>
		
		<view class="cut"></view>
		<view class="detail-desc">
			<view class="d-header">
				<text class="txt">商品详情</text>
				<text class="content" v-html="storeInfo.content"></text>
			</view>
			<view class="d-footer">
				<text class="text">已经到底啦</text>
			</view>
		</view>
		<!-- 底部操作菜单 -->
		<view class="page-bottom">
			<view class="left">
				<view @tap="service" class="p-b-btn">
					<image lazy-load src="/static/images/mall/hotline.png" mode=""></image>
					<text>客服热线</text>
				</view>
				<navigator url="/mallShop/cart/cart" class="p-b-btn">
					<image lazy-load src="/static/images/mall/mall-cart.png" mode=""></image>
					<text>购物车</text>
				</navigator>
			</view>

			<view class="action-btn-group">
				<view class="action-btn no-border add-cart-btn" @tap="toggleSpec(2)">加入购物车</view>
				<view class="action-btn no-border buy-now-btn" @tap="toggleSpec(1)">立即购买</view>
			</view>
		</view>
		
		<view class="backTop" v-if="flag" @tap="backTop">
			<image src="/static/images/backUp.png" mode="widthFix"></image>
			<text>顶部</text>
		</view>
		<!-- 规格-模态层弹窗 -->
		<view class="popup spec" :class="specClass" @touchmove.stop.prevent="stopPrevent" @tap="toggleSpec">
			<!-- 遮罩层 -->
			<view class="mask"></view>
			<view class="layer attr-content" @tap.stop="stopPrevent">
				<view>
					<view class="a-t">
						<image lazy-load :src="shopImage"></image>
						<view class="right">
							<text class="price">{{skuAmount}}</text>
							<text class="stock">库存：{{stock_num}}件</text>
							<view class="selected" v-if="selectDisObj.suk">
								已选：{{selectDisObj.suk}}
							</view>
						</view>
					</view>
					
					<!-- 规格 -->
					<view class="tabList">
						<block v-for="(a, i) of sku" :key="i">
							<view class="box">
								<view :class="b.active ? 'boxLi active' : 'boxLi'" @tap="selectSpec(i, j, b.item_id)" v-for="(b, j) of a.spec_items">{{ b.spec_value }}</view>
							</view>
						</block>
					</view>
					
					<view class="num">
						<text>数量</text>
						<uni-number-box class="uni-number-box" :min="1" :value="goodsNum" @eventChange="numberChange"></uni-number-box>
					</view>
					<view class="btn-box">
						<button class="btn" @tap="submit">{{btnType == 1 ? '立即购买' : '加入购物车'}}</button>
					</view>
				</view>

			</view>
		</view>
	</view>
</template>

<script>
	import uniNumberBox from '@/components/uni-number-box/uni-number-box.vue'
	import uniNavBar from "@/components/uni-nav-bar/uni-nav-bar.vue"
	import uniLoadMore from "../../components/uni-load-more/uni-load-more.vue"
	import goodsBlock from "@/components/goodsBlock/goodsBlock.vue"
	import { details, cardAdd, buyNow, isLogin, shopDetail } from '@/api/substitution.js'
	
	export default {
		components: {
			uniNumberBox,
			uniNavBar,
			uniLoadMore,
			goodsBlock
		},
		data() {
			return {
				flag: false,
				id: '',
				backIconShow: true,
				// #ifdef MP-WEIXIN
				fixedTop: getApp().globalData.MenuButtonTop,
				// #endif
				navColor: 'rgba(0,0,0,0)',
				navBg: "inherit",
				storeInfo: '', //商品信息
				info: '',  // 商品价格信息
				specClass: 'none',
				favorite: true,
				selectArr: [],
				selectDisObj: {
					price: 0,
				},
				btnType: 0,
				goodsNum: 1,
				skuList: [],
				skuAmount: '',
				stock_num: '',
				goods_sku_id: '',
				sku: [],
				amountList: [],
				subIndex: [],
				scrollTop:0,
				
				shopImage: '',
				id: '',
				skuInfo: [],
				
				shopInfo: '',
				shopLogo: '',
				shop_id: '',
				swiperImage: '',
				
				sku_arr: [],
			};
		},
		onLoad(e) {
			isLogin();
			
			this.id = e.id;
			details({
				goods_id: e.id,
			}).then(res => {
				this.shop_id = res.data.detail.shop_id
				this.swiperImage = res.data.detail.image
				
				// 获取商家信息
				shopDetail({
					shop_id: res.data.detail.shop_id
				}).then(t => {
					this.shopInfo = t.data.detail
					this.shopLogo = t.data.detail.logo
				})
				
				this.skuInfo = res.data.detail.sku[0]
				if (res.data.specData !== null) {
					res.data.specData.spec_attr.forEach((item, i) => {
						item.spec_items.forEach((a, j) => {
							if (j === 0) {
								a.active = true
								this.sku_arr.push(a.spec_value)
								this.skuList.push(a.item_id)
							} else {
								a.active = false
							}
						})
					})
					this.sku = res.data.specData.spec_attr;
					this.amountList = res.data.specData.spec_list;
					this.amountList.forEach(item => {
						if (item.spec_sku_id === this.skuList.join('_')) {
							this.shopImage = item.form.image_path
							this.skuAmount = item.form.goods_price
							this.stock_num = item.form.stock_num
							this.goods_sku_id = item.spec_sku_id
						}
					})
				} else {
					this.sku = res.data.detail.sku
					console.log(this.sku)
					this.shopImage = res.data.detail.goods_image
					this.goods_sku_id = 0
					this.skuAmount = res.data.detail.sku[0].goods_price
					this.stock_num = res.data.detail.sku[0].stock_num
				}
			})
		},
		onPageScroll(e) {
			this.scrollTop = e.scrollTop
			this.navBg = "rgba(255,255,255," + e.scrollTop / 150 + ')'
			if (e.scrollTop > 10) {
				this.backIconShow = false
				this.navColor = '#333'
			} else {
				this.backIconShow = true
				this.navColor = 'rgba(0,0,0,0)'
			}
			if (e.scrollTop > 600) { //当距离大于600时显示回到顶部按钮
				this.flag = true
			} else { //当距离小于600时隐藏回到顶部按钮
				this.flag = false
			}
		},
		methods: {
			
			// 客服热线
			service () {
				uni.showToast({
					title: '该功能正在开发中',
					icon: 'none'
				})
			},
			
			// 返回顶部
			backTop() {
				uni.pageScrollTo({
					scrollTop: 0,
					duration: 300
				});
			},
			
			// 进入商店
			shopDetails (e) {
				uni.navigateTo({
					url: './merchantsDtl?id=' + e
				})
			},
			
			// 返回上一页
			getBack () {
				uni.navigateBack()
			},
			
			// 阻止冒泡
			stopPrevent(e) {
				e.stopPropagation()
			},
			
			// 数量
			numberChange(e) {
				this.goodsNum = e.number;
			},
			
			//规格弹窗开关
			toggleSpec(type) {
				this.btnType = type
				if (this.specClass === 'show') {
					this.specClass = 'hide'
				} else if (this.specClass === 'hide' || this.specClass === 'none') {
					this.specClass = 'show'
				}
			},
			
			//选择规格
			selectSpec(item, index, idx) {
				this.sku[item].spec_items.forEach(item => {
					item.active = false;
				})
				this.sku[item].spec_items[index].active = true
				this.sku_arr[item] = this.sku[item].spec_items[index].spec_value
				this.skuList[item] = idx;
				this.amountList.forEach(item => {
					if (item.spec_sku_id === this.skuList.join('_')) {
						this.shopImage = item.form.image_path
						this.skuAmount = item.form.goods_price
						this.stock_num = item.form.stock_num
						this.goods_sku_id = item.spec_sku_id
					}
				})
			},
			submit() {
				uni.showLoading({mask:true});
				if (this.btnType === 2) {
					cardAdd({
						goods_id: this.id,
						goods_num: this.goodsNum,
						goods_sku_id: this.goods_sku_id
					}).then(res => {
						uni.showToast({
							icon: 'success',
							title: res.msg
						})
						this.specClass = 'hide'
					})
				} else {
					// buyNow({
					// 	delivery: 0,
					// 	shop_id: 0,
					// 	coupon_id: 0,
					// 	is_use_points: 0,
					// 	goods_id: this.id,
					// 	goods_num: this.goodsNum,
					// 	goods_sku_id: this.goods_sku_id
					// }).then(res => {
					// })
					uni.navigateTo({
						url: '../user/confirmorder?id=' + this.id + '&num=' + this.goodsNum + '&sku_id=' + this.goods_sku_id + '&type=0'
					})
				}
			},
		},
		onHide() {
			this.specClass = 'none'
		},
	}
</script>

<style lang='scss' scoped>
	.container {
		overflow-x: hidden;
	}

	page {
		overflow-x: hidden;
		background: $page-color-base;
		padding-bottom: 160rpx;
	}

	.cut {
		width: 100%;
		height: 20rpx;
		background: #f5f5f5;
	}

	.icon-you {
		font-size: $uni-font-size-base + 1rpx;
		color: #666;
	}

	.carousel {
		height: 722rpx;
		position: relative;
		
		.goBack {
			position: absolute;
			width: 60rpx;
			height: 60rpx;
			background-color: rgba(0, 0, 0, .05);
			border-radius: 50%;
			left: 30rpx;
			top: 60rpx;
			color: #000000;
			z-index: 99999;
			display: flex;
			align-items: center;
			justify-content: center;
			.yticon {
				font-size: 40rpx;
				position: relative;
				left: 7rpx;
				top: 1rpx;
			}
		}

		swiper {
			height: 100%;
		}

		.image-wrapper {
			width: 100%;
			height: 100%;
		}

		.swiper-item {
			display: flex;
			justify-content: center;
			align-content: center;
			height: 750rpx;
			overflow: hidden;

			image {
				width: 100%;
				height: 100%;
			}
		}

	}

	/* 标题简介 */
	.introduce-section {
		background: #fff;

		.pd-30 {
			padding: 20rpx 30rpx;
			border-bottom: 1px solid #EEEEEE;

			image {
				width: 70rpx;
				height: 28rpx;
				margin-right: 12rpx;
			}
		}

		.specifications {
			display: flex;
			justify-content: space-between;
			padding: 35rpx 30rpx;
			
			.h6 {
				font-size: 26rpx;
				color: #B4B4B4;
				white-space: nowrap;
				margin-right: 60rpx;
			}
			.span {
				font-size: 26rpx;
				
				uni-text {
					&:nth-of-type(1) {
						margin-right: 10rpx;
					}
				}
			}
		}

		.titleBox {
			display: flex;

			.title {
				flex: 1;
				font-weight: bold;
				color: #333333;
				font-size: 32rpx;
				/* height: 50rpx; */
				line-height: 50rpx;
				text-align: justify;

				text {
					font-weight: normal;
					margin-right: 10rpx;
					padding: 5rpx 7rpx;
					background: #F84350;
					border-radius: 8rpx;
					font-size: 24rpx;
					color: #fff;
				}

			}

			.collect {
				width: 140rpx;
				display: flex;
				flex-direction: column;
				align-items: center;

				image {
					margin-top: 10rpx;
					margin-right: 0;
					width: 40rpx;
					height: 40rpx;
				}

				text {
					font-size: 20rpx;
					color: #343434;
					margin-top: 6rpx;
				}
			}
		}


		.black_rate {
			height: 24rpx;
			line-height: 24rpx;
			font-size: 24rpx;
			margin-top: 12rpx;

			text {
				font-weight: bold;
			}
		}

		.price-box {
			display: flex;
			align-items: baseline;
			padding: 15rpx 0;
			font-size: 26rpx;
			color: $mall-price;

			.shellIcon {
				width: 30rpx;
				height: 20rpx;
				margin-right: 10rpx;
			}

		}

		.vip-price {
			margin-left: 25rpx;

			text {
				color: #333333;
			}

			.v-icon {
				padding: 1rpx 12rpx;
				background: linear-gradient(0deg, #E9CDA3 0%, #D5AD7B 100%);
				border-radius: 20rpx;
				font-weight: bold;
				font-size: 18rpx;
				margin-left: 10rpx;
			}

			.k2 {
				background: #000;
				color: #E5C599;
			}
		}

		.price-tip {
			font-size: 24rpx;
			font-weight: bold;
		}

		.price {
			font-size: 40rpx;
			font-weight: bold;
		}

		.pricePoint {
			font-weight: bold;
			font-size: 30rpx;
		}

		.v-price-tip {
			font-size: 20rpx;
			font-weight: bold;
		}

		.v-price {
			font-size: 28rpx;
			font-weight: bold;
		}

		.v-pricePoint {
			font-weight: bold;
			font-size: 20rpx;
		}

		.m-price {
			margin: 0 12rpx;
			color: $font-color-light;
			text-decoration: line-through;
		}

		.coupon-tip {
			align-items: center;
			padding: 4rpx 10rpx;
			background: $mall-color-pri;
			font-size: $uni-font-size-sm;
			color: #fff;
			border-radius: 6rpx;
			line-height: 1;
			transform: translateY(-4rpx);
		}

		.bot-row {
			padding-right: 30rpx;
			display: flex;
			align-items: center;
			font-size: 24rpx;
			color: #B4B4B4;
			justify-content: space-between;

			text {
				/* flex: 1;
				text-align: center; */
			}
		}
	}

	.shop {
		padding: 20rpx 32rpx;
		position: relative;
		background-color: #fff;

		.shopInfo {
			display: flex;

			image {
				width: 120rpx;
				height: 120rpx;
				border-radius: 8rpx;
			}

			.infoBox {
				display: flex;
				flex-direction: column;
				justify-content: center;
				margin-left: 25rpx;

				.title {
					font-size: 32rpx;
					font-weight: bold;
					color: rgba(51, 51, 51, 1);
					margin-bottom: 28rpx;
					width: 450rpx;

					.icon {
						padding: 0 6rpx;
						height: 36rpx;
						background: #F25656;
						border-radius: 4rpx;
						text-align: center;
						line-height: 36rpx;
						font-size: 24rpx;
						color: #fff;
						margin-right: 10rpx;
					}
				}

				.info__rate {
					.score {
						margin-left: 10rpx;
						font-size: 24rpx;
						font-weight: 500;
						color: #F86436;
					}

					.conclusion {
						margin-left: 10rpx;
						font-size: 24rpx;
						font-weight: 500;
						color: #666666;
					}
				}
			}
		}

		.goto {
			position: absolute;
			top: 40rpx;
			right: 12rpx;
			color: #333333;
		}

		.goodsList {
			margin-top: 40rpx;
			display: flex;
			justify-content: space-between;

			.item {
				display: flex;
				flex-direction: column;
				align-items: center;
				width: 210rpx;

				image {
					width: 210rpx;
					height: 210rpx;
					background: #DEDEDE;
					border-radius: 8rpx;
					margin-bottom: 24rpx;
				}

				text {
					width: 210rpx;
					font-size: 28rpx;
					color: #666666;
				}
			}
		}

		.seeMore {
			margin-top: 30rpx;
			display: flex;
			justify-content: center;

			text {
				width: 180rpx;
				height: 60rpx;
				border: 2rpx solid #DEDEDE;
				border-radius: 30rpx;
				text-align: center;
				line-height: 60rpx;
				font-size: 28rpx;
				color: #9A9A9A;
			}
		}
	}

	/*  详情 */
	.detail-desc {
		background: #fafafa;

		.d-header {
			display: flex;
			justify-content: center;
			align-items: center;
			flex-direction: column;
			position: relative;
			font-weight: Medium;
			background-color: #fff;

			.txt {
				padding: 30rpx 20rpx;
				color: #666666;
				position: relative;
				font-size: 35rpx;
				z-index: 1;
			}
			
			.content {
				padding: 0 25rpx 30rpx;
			}

			/* &:after {
				position: absolute;
				left: 50%;
				top: 50%;
				transform: translateX(-50%);
				width: 300rpx;
				height: 0;
				content: '';
				border-bottom: 1px solid #ccc;
			} */
			
			/deep/ img {
				width: 100%;
			}
		}

		.rich-text {
			width: 100%;
			overflow-x: hidden;

			.img {
				width: 100%;
			}

			image {
				width: 100%;
			}
		}

		.d-footer {
			display: flex;
			justify-content: center;
			align-items: center;
			height: 80rpx;
			font-size: 24rpx;
			color: #9a9a9a;
			position: relative;
			font-weight: Medium;
			background-color: #fafafa;

			.text {
				padding: 0 20rpx;
				background: #fafafa;
				position: relative;
				z-index: 1;
			}

			&:after {
				position: absolute;
				left: 50%;
				top: 50%;
				transform: translateX(-50%);
				width: 300rpx;
				height: 0;
				content: '';
				border-bottom: 1px solid #ccc;
			}
		}
	}

	/* 规格选择弹窗 */
	.attr-content {
		padding: 30rpx;
		box-sizing: border-box;

		.a-t {
			display: flex;

			image {
				background-color: #f5f5f5;
				width: 170rpx;
				height: 170rpx;
				flex-shrink: 0;
				margin-top: -70rpx;
				border-radius: 8rpx;
			}

			.right {
				display: flex;
				flex-direction: column;
				padding-left: 24rpx;
				font-size: 20rpx;
				color: #999;
				line-height: 30rpx;

				.price {
					line-height: 40rpx;
					font-weight: bold;
					font-size: $uni-font-size-lg;
					color: $mall-price;

					&:before {
						content: '￥';
						font-size: 20rpx;
					}
				}
			}
		}

		.tabList {
			display: flex;
			flex-direction: column;
			margin-top: 40rpx;
			
			.box {
				display: flex;
				align-items: center;
				flex-wrap: wrap;
				
				.boxLi {
					font-size: 26rpx;
					padding: 12rpx 30rpx;
					margin: 0 20rpx 20rpx 0;
					border-radius: 8rpx;
					color: #888;
					border: 1rpx solid #e6e6e6;
					&.active {
						background: #f82169;
						border: 1rpx solid #f82169;
						color: #fff;
					}
				}
			}
		}

		.num {
			bottom: calc(120rpx + env(safe-area-inset-bottom));
			height: 100rpx;
			width: 100%;
			padding: 0 30rpx;
			box-sizing: border-box;
			display: flex;
			justify-content: space-between;
			align-items: center;
			font-size: 26rpx;

			.uni-number-box {
				width: 200rpx;
				height: 50rpx;
				position: relative;
			}
		}

		.btn-box {
			width: 100%;
			border-top: 1px solid #eee;
			z-index: 99;
			height: 119rpx;
			padding-bottom: env(safe-area-inset-bottom);
			display: flex;
			align-items: center;

			.btn {
				height: 76rpx;
				line-height: 76rpx;
				border-radius: 38rpx;
				background: $mall-price;
				font-size: 28rpx;
				color: #fff;
				width: 690rpx;
			}
		}

		.attr-list {
			padding-top: 30rpx;

			.specTitle {
				font-size: 28rpx;
				color: #999;
			}

			.itemBox {
				margin-top: 30rpx;
				display: flex;
				flex-wrap: wrap;

				.item {
					font-size: 24rpx;
					height: 50rpx;
					line-height: 50rpx;
					text-align: center;
					color: #999;
					border: 1rpx solid #999;
					margin-right: 30rpx;
					padding: 0 30rpx;
					border-radius: 25rpx;
					margin-bottom: 30rpx;
				}

				.itemAct {
					background-color: $mall-price;
					border: 1rpx solid $mall-price;
					color: #fff;
				}
			}
		}

	}

	/*  弹出层 */
	.popup {
		position: fixed;
		left: 0;
		top: 0;
		right: 0;
		bottom: 0;
		z-index: 99;

		&.show {
			display: block;

			.mask {
				animation: showPopup 0.2s linear both;
			}

			.layer {
				animation: showLayer 0.2s linear both;
			}
		}

		&.hide {
			animation: hideLayer 0.2s linear both;

			.mask {
				animation: hideLayer 0.2s linear both;
			}

			.layer {
				animation: hideLayer 0.2s linear both;
			}
		}

		&.none {
			display: none;
		}

		.mask {
			position: fixed;
			top: 0;
			width: 100%;
			height: 100%;
			z-index: 1;
			background-color: rgba(0, 0, 0, 0.4);
		}

		.layer {
			position: fixed;
			z-index: 99;
			bottom: 0;
			padding-bottom: env(safe-area-inset-bottom);
			width: 100%;
			border-radius: 10rpx 10rpx 0 0;
			background-color: #fff;
		}

		@keyframes showPopup {
			0% {
				opacity: 0;
			}

			100% {
				opacity: 1;
			}
		}

		@keyframes hidePopup {
			0% {
				opacity: 1;
			}

			100% {
				opacity: 0;
			}
		}

		@keyframes showLayer {
			0% {
				transform: translateY(120%);
			}

			100% {
				transform: translateY(0%);
			}
		}

		@keyframes hideLayer {
			0% {
				transform: translateY(0);
			}

			100% {
				transform: translateY(120%);
			}
		}
	}

	/* 底部操作菜单 */
	.page-bottom {
		position: fixed;
		bottom: 0;
		left: 0;
		padding-bottom: env(safe-area-inset-bottom);
		z-index: 95;
		display: flex;
		justify-content: space-between;
		align-items: center;
		width: 100%;
		height: 110rpx;
		padding: 0 30rpx;
		box-sizing: border-box;
		background: #fff;
		box-shadow: 0 0 20rpx 0 rgba(0, 0, 0, .1);

		.left {
			display: flex;
			align-items: center;

			.p-b-btn {
				display: flex;
				flex-direction: column;
				align-items: center;
				justify-content: center;
				font-size: 18rpx;
				color: rgba(51, 51, 51, 1);
				width: 110rpx;
				height: 80rpx;
				margin-right: 10rpxs;

				image {
					width: 40rpx;
					height: 40rpx;
					margin-bottom: 5rpx;
				}

				.active {
					color: $mall-price;
				}
			}
		}


		.action-btn-group {
			display: flex;
			justify-content: flex-end;
			line-height: 70rpx;
			text-align: center;
			color: #fff;
			font-size: 26rpx;
			flex: 1;

			.add-cart-btn {
				width: 222rpx;
				height: 70rpx;
				background: linear-gradient(90deg, #EF9C2F 0%, #F8B015 100%);
				border-radius: 35rpx;
				margin-right: 24rpx;
			}

			.buy-now-btn {
				width: 200rpx;
				height: 70rpx;
				background: linear-gradient(90deg, #FB3838 0%, #FD5353 100%);
				border-radius: 35rpx;
			}
		}
	}

	.backTop {
		position: fixed;
		bottom: 254rpx;
		bottom: calc(254rpx + env(safe-area-inset-bottom));
		right: 30rpx;
		width: 80rpx;
		height: 80rpx;
		background: #FFFFFF;
		border: 1rpx solid #EEEEEE;
		border-radius: 50%;
		display: flex;
		flex-direction: column;
		align-items: center;
		justify-content: center;

		image {
			width: 30rpx;
		}

		text {
			font-size: 20rpx;
			font-weight: 500;
			color: #666666;
		}
	}

.store {
	background-color: #FFFFFF;
	display: flex;
	align-items: center;
	padding: 30rpx;
	
	img {
		width: 80rpx;
		height: 80rpx;
		background-color: #EEEEEE;
		border-radius: 50%;
		margin-right: 25rpx;
	}
	
	.store_name {
		flex: 1 1 auto;
		width: 1%;
		margin-right: 30rpx;
		display: flex;
		flex-direction: column;
		.name {
			font-size: 32rpx;
			font-weight: bold;
			margin-bottom: 10rpx;
		}
		.address {
			font-size: 26rpx;
			color: #B4B4B4;
			overflow: hidden;
			white-space: nowrap;
			text-overflow: ellipsis;
		}
	}
	
	.store_go {
		margin-left: auto;
		color: #FE7B47;
		border: 1px solid #FE7B47;
		padding: 8rpx 35rpx;
		border-radius: 50rpx;
	}
}
</style>
